package beautiful.butterfly.drds.data_exchange.job;


public enum State
{

    KILLED(50),
    FAILED(60),
    SUCCEEDED(70),;

    int value;

    private State(int value)
    {
        this.value = value;
    }

    public int value()
    {
        return this.value;
    }

    public boolean isFinished()
    {
        return this == KILLED || this == FAILED || this == SUCCEEDED;
    }

    public boolean isRunning()
    {
        return !this.isFinished();
    }
}
